package com.itsm.response;

import java.io.Serializable;
import java.util.Date;

/**
 * 响应
 * @author jason
 *
 */
public class ResponeData implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String code = "200";
	
	private String msg = "成功！";
	private int count = 0;
	private Date date = new Date();
	
	private Object data;
	
	

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public ResponeData() {
	}

	public ResponeData(Object data) {
		this.data = data;
	}

	public ResponeData(String code, String msg, Object data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
	
	
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	

	@Override
	public String toString() {
		return "ResponeData [code=" + code + ", msg=" + msg + ", date=" + date + ", data=" + data + "]";
	}

	public static void main(String[] args) {
		ResponeData respone = new ResponeData("aa");
		System.out.println(respone);
	}

}
